package com.kmxd.ams.client.use;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kmxd.ams.client.use.dto.UseAppraiseAddDTO;
import com.kmxd.ams.client.use.dto.UseAppraiseEditDTO;
import com.kmxd.ams.client.use.dto.UseAppraiseQueryDTO;
import com.kmxd.ams.client.use.vo.UseAppraiseEffectListVO;
import com.kmxd.ams.client.use.vo.UseAppraiseListVO;
import com.kmxd.ams.client.use.vo.UseAppraiseScoreListVO;
import com.kmxd.ams.client.use.vo.UseAppraiseVO;
import com.kmxd.ams.infra.use.entity.UseAppraise;
import java.util.List;
import java.util.Map;

/**
 * 利用评价表 服务类
 *
 * @author nickbi
 * @since 2023-01-19
 */
public interface IUseAppraiseSvc extends IService<UseAppraise> {

  /**
   * 分页查询
   *
   * @param reqPage
   * @param req
   * @return
   */
  Page<UseAppraiseListVO> selectPage(Page reqPage, UseAppraiseQueryDTO req);

  /**
   * 查询列表
   *
   * @param req
   * @return
   */
  List<UseAppraiseListVO> selectList(UseAppraiseQueryDTO req);

  /**
   * 新增
   *
   * @param req
   */
  void add(UseAppraiseAddDTO req);

  /**
   * 修改
   *
   * @param req
   */
  void edit(UseAppraiseEditDTO req);

  /**
   * 删除
   *
   * @param ids
   */
  void remove(String ids);

  /**
   * 查看
   *
   * @param id
   * @return
   */
  UseAppraiseVO view(Long id, Long workId);

  Page<UseAppraiseScoreListVO> selectScorePage(Page reqPage, UseAppraiseQueryDTO req);

  List<UseAppraiseScoreListVO> selectScoreList(UseAppraiseQueryDTO req);

  Page<Map<String, Object>> selectScoreWithWorkTypePage(Page reqPage, UseAppraiseQueryDTO req);

  Page<UseAppraiseEffectListVO> selectEffectPage(Page reqPage, UseAppraiseQueryDTO req);

  List<UseAppraiseEffectListVO> selectEffectList(UseAppraiseQueryDTO req);
}
